package com.yeren.breakDemo;

import java.util.Scanner;

public class BreakDemo {

	public static void main(String[] args) {
		fun1();
	}

	private static void fun1() {
		System.out.println("请选择功能：1.显示全部记录 2.查询登录记录 0.退出");
		Scanner scanner = new Scanner(System.in);
		int num = scanner.nextInt();
		switch (num) {
		case 1:
			System.out.println("显示全部记录");
			break;
		case 2:
			System.out.println("查询登录记录");
			break;
		case 0:
			System.out.println("退出");
			break;
		default:
			System.out.println("输入错误");
			break;
		}
	}
}
